package com.aspose.cells;

class zbqr extends zbz {
   private zbqq a = null;

   zbqr(zbqq var1) {
      this.c(241);
      this.a = var1;
      this.a();
   }

   void a() {
      byte var1 = 24;
      int var2 = var1 + zakq.e(this.a.b);
      var2 += zakq.e(this.a.c);
      var2 += zakq.e(this.a.d);
      var2 += zakq.e(this.a.h);
      var2 += zakq.e(this.a.i);
      var2 += zakq.e(this.a.j);
      this.a((short)var2);
      this.c = new byte[this.d()];
      this.b();
   }

   private void b() {
      byte var1 = 0;
      boolean var2 = false;
      System.arraycopy(com.aspose.cells.b.a.zc.a(this.a.a), 0, this.c, var1, 2);
      int var4 = var1 + 2;
      short var5 = (short)(this.a.b == null ? -1 : this.a.b.length());
      System.arraycopy(com.aspose.cells.b.a.zc.a(var5), 0, this.c, var4, 2);
      var5 = (short)(this.a.c == null ? -1 : this.a.c.length());
      System.arraycopy(com.aspose.cells.b.a.zc.a(var5), 0, this.c, var4 + 2, 2);
      var5 = (short)(this.a.d == null ? -1 : this.a.d.length());
      System.arraycopy(com.aspose.cells.b.a.zc.a(var5), 0, this.c, var4 + 4, 2);
      var4 += 6;
      System.arraycopy(com.aspose.cells.b.a.zc.a(this.a.e), 0, this.c, var4, 2);
      PivotFieldCollection var3 = this.a.k.getPageFields();
      System.arraycopy(com.aspose.cells.b.a.zc.a((short)var3.getCount()), 0, this.c, var4 + 2, 2);
      System.arraycopy(com.aspose.cells.b.a.zc.a((short)(var3.getCount() == 0 ? 0 : 1)), 0, this.c, var4 + 4, 2);
      var4 += 6;
      System.arraycopy(com.aspose.cells.b.a.zc.a(this.a.f), 0, this.c, var4, 2);
      System.arraycopy(com.aspose.cells.b.a.zc.a(this.a.g), 0, this.c, var4 + 2, 2);
      var4 += 4;
      var5 = (short)(this.a.h == null ? -1 : this.a.h.length());
      System.arraycopy(com.aspose.cells.b.a.zc.a(var5), 0, this.c, var4, 2);
      var5 = (short)(this.a.i == null ? -1 : this.a.i.length());
      System.arraycopy(com.aspose.cells.b.a.zc.a(var5), 0, this.c, var4 + 2, 2);
      var5 = (short)(this.a.j == null ? -1 : this.a.j.length());
      System.arraycopy(com.aspose.cells.b.a.zc.a(var5), 0, this.c, var4 + 4, 2);
      var4 += 6;
      if (this.a.b != null) {
         var4 += zco.a(this.c, var4, this.a.b);
      }

      if (this.a.c != null) {
         var4 += zco.a(this.c, var4, this.a.c);
      }

      if (this.a.d != null) {
         var4 += zco.a(this.c, var4, this.a.d);
      }

      if (this.a.h != null) {
         var4 += zco.a(this.c, var4, this.a.h);
      }

      if (this.a.i != null) {
         var4 += zco.a(this.c, var4, this.a.i);
      }

      if (this.a.j != null) {
         int var10000 = var4 + zco.a(this.c, var4, this.a.j);
      }

   }
}
